package ge.telasi.tasks.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 * Application configuration entry.
 * 
 * @author dimitri
 */
@Entity
@Table(name = "app_config")
@NamedQueries({
    @NamedQuery(name = "Config.selectAll", query = "SELECT  c FROM AppConfig c ORDER BY c.key"),
    @NamedQuery(name = "Config.findByKey", query = "SELECT c FROM AppConfig c WHERE c.key = :key")
})
public class AppConfig implements Serializable {
    private static final long serialVersionUID = -8935417129287992412L;

	@Id
	@Column(name = "config_key")
	private String key;
	@Column(name = "config_value")
	private String value;

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

}